import request from '@/utils/request'

//新增
export function addHandle(data) {
  return request({
    url: 'privacyPolicy/savePrivacyPolicy',
    method: 'post',
    data
  })
}

//删除
export function deleteHandle(data) {
  return request({
    url: 'privacyPolicy/deletePrivacyPolicy',
    method: 'post',
    data
  })
}

//修改
export function editHandle(data) {
  return request({
    url: 'privacyPolicy/updatePrivacyPolicy',
    method: 'post',
    data
  })
}

export function upFile(data) {
  return request({
    url: `public/file/upload`,
    method: 'post',
    dataType: 'file',
    data
  })
}


export default { 
  addHandle,
  deleteHandle,
  editHandle,
  upFile
}
